package com.qigao.mall.api;

import com.github.pagehelper.PageInfo;
import com.qigao.mall.commons.dto.SettleAuditDto;
import com.qigao.mall.commons.dto.SettleQueryDto;
import com.qigao.mall.commons.dto.SettleTotalResultDto;
import com.qigao.mall.commons.enums.Result;
import com.qigao.mall.jdbc.model.TbSettleTotal;

import java.util.Date;
import java.util.List;

/**
 * @author luiz
 * @Title: com.qigao.mall.api
 * @ProjectName market-parent
 * @date 2020-06-2020-06-19 11:05
 * @Description:
 */
public interface SettleTotalService {
    void saveBySettleDate(TbSettleTotal tbSettleTotal);

    void insert(TbSettleTotal tbSettleTotal);

    Result<PageInfo<SettleTotalResultDto>> listPage(SettleQueryDto settleQueryDto);

    Result settleAudit(SettleAuditDto settleAuditDto);

    List<SettleTotalResultDto> findOrderResultByCond(SettleQueryDto settleQueryDto);

    void insertBatch(List<TbSettleTotal> tbSettleTotals);

    void saveBatch(List<TbSettleTotal> tbSettleTotals);

    int countBySettleDate(Date settleDate);
}
